
from HTMLTestRunner import HTMLTestRunner
import unittest


tests = unittest.defaultTestLoader.discover(r"D:\Users\Administrator\PycharmProjects\pythonProject2",pattern="Test*.py")

runner = HTMLTestRunner.HTMLTestRunner(
    title="财务测试报告",
    description="测试报告",
    verbosity=2,
    stream=open(file="财务系统测试报告.html",mode="w+",encoding="utf-8")
)

runner.run(tests)
